<?php
namespace Swiftx\System;
/**
 * 系统公共父类
 * @author		胡永强 <odaytudio@gmail.com>
 * @since		2015-01-17
 * @copyright	Copyright (c) 2014-2015 Swiftx Inc.
 * @package    Swiftx\System
 */
abstract class Object {
	
	/**
	 * 魔术方法Get
	 * @access Attribute
	 * @param string $name
	 * @return mixed
	 */
	public function __get($name){
		$method = '_get'.$name;
		return $this->$method();
    }
	
	/**
	 * 魔术方法Set
	 * @access Attribute
	 * @param string $name
	 * @param mixed $value
	 */
	public function __set($name,$value){
		$method = '_set'.$name;
		return $this->$method($value);
    }
	
}